<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->


    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">

    <link rel="stylesheet" th:href="@{/css/me.css}">
    <link rel="stylesheet" type="text/css" media="all" th:href="@{/css/bootstrap-glyphicons.css}">
    <link rel="stylesheet" type="text/css" media="all" th:href="@{/css/styles.css}">


</head>

<body class="mybody">

<div th:replace="~{commons::header('time')}"></div>

<div class="container">
    <header class="page-header">
        <h1 style="font-family: '微软雅黑';opacity: 0.8;">MinXu的时间轴</h1>
    </header>
    <ul class="timeline" style="opacity: 0.7">
        <li th:each="article:${articles}" th:class="${article.getId()%2==0}?'timeline-inverted'">
            <div class="tl-circ"></div>
            <div class="timeline-panel">
                <div class="tl-heading">
                    <h4>
                        <a th:text="${article.getTitle()}"
                           th:href="@{/blog(id=${article.getId()})}"
                           style="color: black"></a>
                    </h4>
                    <small style="color: #888888">
                        <span class="glyphicon glyphicon-time" aria-hidden="true"></span>
                        <strong th:text="${#dates.format(article.getDate(),'yyyy-MM-dd HH:mm:ss')}"></strong>
                    </small>
                </div>
                <div class="tl-body">
                    <a style="text-decoration: none;color: black" th:href="@{/blog(id=${article.getId()})}" th:text="${article.getContent()}"></a>
                </div>
            </div>
        </li>
    </ul>
</div>


<div th:replace="~{commons::footer}"></div>


<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>

</body>
</html>